package com.csinc.generate.core.base.model;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * Create By 郭金宝 on 2018/7/25.<br>
 */

public class DBConnectionEntity {
    private StringProperty nameProperty = new SimpleStringProperty();
    private StringProperty ipProperty = new SimpleStringProperty();
    private IntegerProperty portProperty = new SimpleIntegerProperty();
    private StringProperty userNameProperty = new SimpleStringProperty();
    private StringProperty passwordProperty = new SimpleStringProperty();

    public String getNameProperty() {
        return nameProperty.get();
    }

    public StringProperty namePropertyProperty() {
        return nameProperty;
    }

    public void setNameProperty(String nameProperty) {
        this.nameProperty.set(nameProperty);
    }

    public String getIpProperty() {
        return ipProperty.get();
    }

    public StringProperty ipPropertyProperty() {
        return ipProperty;
    }

    public void setIpProperty(String ipProperty) {
        this.ipProperty.set(ipProperty);
    }

    public Integer getPortProperty() {
        return portProperty.get();
    }

    public IntegerProperty portPropertyProperty() {
        return portProperty;
    }

    public void setPortProperty(Integer portProperty) {
        this.portProperty.set(portProperty);
    }

    public String getUserNameProperty() {
        return userNameProperty.get();
    }

    public StringProperty userNamePropertyProperty() {
        return userNameProperty;
    }

    public void setUserNameProperty(String userNameProperty) {
        this.userNameProperty.set(userNameProperty);
    }

    public String getPasswordProperty() {
        return passwordProperty.get();
    }

    public StringProperty passwordPropertyProperty() {
        return passwordProperty;
    }

    public void setPasswordProperty(String passwordProperty) {
        this.passwordProperty.set(passwordProperty);
    }
}
